<meta charset="utf-8">
<?php
/**
* 
*/
class User
{	//公有变量  属性
	public $name;
	public $age;
	public $sex; 
	// 构造函数  方法
	public function __construct($name,$age,$sex)
	{
		$this->name=$name;
		$this->age=$age;
		$this->sex=$sex;
	}
	function add(){
		echo 'add user'.$this->name.$this->age.$this->sex;
	}
	function edit(){
		echo "edit user".$this->name.$this->age.$this->sex;
	}

}
$obj = new User('张三','32','boy');
$obj->add();
$obj->edit();


?>